<?php
/**********************************************
* 파일명: fileupload.php
* 설  명: 플래시 다중업로드가 지원되지 않는 브라우저를 위한 파일입니다.
***********************************************/
include "lib.php";
$uploadurl = $blogURL."/plugin/TT_SkinManagerFileupload/";
$dir = $_GET['dir'];

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php echo pluginLang::plts('스킨매니저 :: 파일업로드');?></title>
	<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $service['path'] . $adminSkinSetting['skin'];?>/plugin-config.css" />
	<style type="text/css">
		body
		{
			font-size: 12px;
		}

		.text1
		{
			background: #eee;
			color: #666;
			margin-top: 10px;
			padding: 15px;
		}
		
		.text1 ul
		{
			margin: 10px 0 0 30px;
		}

		.help
		{
			margin: 10px 20px 0 20px;
			text-align: justify;
			padding: 0;
		}
		
		.center
		{
			text-align: center;
		}
	</style>
	<script language="JavaScript" type="text/javascript">
		//<![CDATA[
			function js_close(){
				//opener.location.reload();
				//self.close();
				document.getElementById("msgdiv").style.display ="block";
				document.getElementById("msgdiv").innerHTML = "<?php echo pluginLang::plts('파일 업로드가 완료되었습니다.');?>";
				opener.document.reg.submit();
				location.href =location.href;
				setTimeout("js_hidediv()",2000);
			}
			function js_hidediv(){
				document.getElementById("msgdiv").style.display ="none";
			}
		//]]>
	</script>
</head>
<body>
	<div id="layout-head">
		<h1 class="caption"><?php echo pluginLang::plts('스킨매니저 파일 업로드');?></h1>
	</div>
	
	<div id="layout-body">
		<ul id="menu">
			<li id="about-tab" class="selected" onclick="toggleTab('about'); return false;"><?php echo pluginLang::plts('파일 업로드');?></li>
		</ul>
		
		<div class="tab">
			<div class="text1">
				<?php echo pluginLang::plts('현재 폴더');?> : <strong><?php echo TT_SkinManagerEncode($dir,'d');?></strong>
			</div>
			
			<form action="<?php echo $uploadurl;?>?dir=<?php echo $dir;?>" enctype="multipart/form-data" method="post" target="ifrm">
				<input type="hidden" name="filetype" value='T' />
				<input type="file" name="attachment" onchange="document.forms[0].submit();" />
			</form>
		</div>
	</div>
	
	<div id="msgdiv"></div>
	<iframe src="about:blank" name="ifrm" width="300" height="100" style="display:none;"></iframe> 
</body>
</html>
